Repository navigation
Warm the reference cache so validate-all stops re-fetching - #1527
Conversation
validate-all's reference step was ~59 min because the committed cache was incomplete: ~925 referenced PMIDs/DOIs were uncached and ~800 more had no full text, so linkml-reference-validator re-fetched them from PubMed/providers on every run. Ran a one-time full warm (fetch_full_text=True over every unique reference in the corpus) to complete the cache: 925 newly-cached references and full text added to ~805 existing entries. Effect (reference step on a 100-file sample): ~779s -> ~26s (~30x); the step is now cache-bound, not network-bound. Combined with the batched validator call, the full validate-all reference phase drops from ~59 min to a few minutes. Raw fetched PDFs (publications/files/, ~800MB) are gitignored — the extracted text is already in the per-reference .md cache. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @cmungall's task in 3m 6s —— View job Review: PR #1527 — Warm the reference cache so validate-all stops re-fetching
FindingsThis is a clean infrastructure PR. It only touches What was verified
🔵 Minor noteThe PR description mentions stripping ~900 malformed cache files ( VerdictApproved. Mechanical, well-scoped cache-warming change. Every modified file gains exactly the |
There was a problem hiding this comment.
Review Summary
- No schema/gene-review YAML changes — this PR is cache-only
- All 856 publication files correctly gain
full_text_attempted: true - 51 newly added files have proper frontmatter structure
- 179 files upgraded from
abstract_only/unavailabletofull_text_pdf/full_text_html/full_text_xmlwith actual content -
publications/files/(raw PDFs, ~800 MB) correctly gitignored - No malformed filenames present on branch
- No gene review, schema, or source code changes
- Title reformatting (collapsed multiline
<i>tags) is a valid cleanup
Clean infrastructure PR. The changes are mechanical and well-scoped: every modified file gains exactly full_text_attempted: true (plus full-text content and provider metadata where retrieval succeeded). No issues found.
Why
validate-all's reference phase was ~59 min because the committed reference cache (publications/) was incomplete: most entries were abstract-only with nofull_text_attemptedmarker, solinkml-reference-validatorre-fetched them from PubMed/providers on every run. The fetch — not per-file process startup — was the bottleneck.What
One-time full warm: ran
linkml-reference-validator validate datawithfetch_full_text=Trueover every gene-review file, populatingpublications/with full text +full_text_attemptedmarkers so cached references are never re-fetched.publications/files/, ~800 MB) are gitignored — the extracted text already lives in the per-reference.md.Effect (measured)
Reference validation on a 100-file sample: ~779s → ~26s (~30×). The step is now cache-bound, not network-bound. Combined with the batched validator call (already on main, #1522), the full
validate-allreference phase drops from ~59 min to a few minutes.Cache hygiene
Stripped ~900 malformed cache files left by an earlier regex-based warm experiment (filenames like
PMID_12345).md/PMID_12345..md, where prose mentions such as(PMID:12345)over-captured trailing punctuation). Each had a clean counterpart or was a prose-only mention; 10 valid prose-only entries were renamed to their clean names + frontmatter id fixed. No structured reference id in any gene file is malformed, so this junk cannot recur.mainhad zero malformed names before this PR.CI note
This PR only touches
publications/+.gitignore, so the paths-filter intentionally skips validation. The speedup will show on the next infra/weekly/manualvalidate-allrun once merged.🤖 Generated with Claude Code